#ifndef GV_MAINTENANCEDELAYSETTINGDIALOG_H
#define GV_MAINTENANCEDELAYSETTINGDIALOG_H
#include<QtGui>
#include <QtGui/QWidget>
#include <QtCore/QTextCodec>
#include <QDialog>
#include "ui_maintenancedelaysetting.h"
class QTimer;
enum{
    DELAYONBUTTON=0,
    DELAYOFFBUTTON,
    DELAYDETAILEDBUTTON,
    DELAYALARM1EBUTTON,
    DELAYALARM2EBUTTON,
    DELAYALARM3EBUTTON
};
class GV_MaintenanceDelaysettingDialog:public QDialog, public Ui::MaintenanceDelaysettingDialog
{
    Q_OBJECT
signals:
    void currentTime();
public:
    GV_MaintenanceDelaysettingDialog(QWidget *parent = 0);

    QTimer *timer;
private slots:
    void GV_chTime();
    void home();
    void DecreaseButtonClicked();
    void IncreaseButtonClicked();
    void ValueRefresh();
    void DelayOnSelectButtonClicked();
    void DelayOffSelectButtonClicked();
    void Alarm1eButtonClicked();
    void Alarm2eButtonClicked();
    void Alarm3eButtonClicked();
    void AlarmDetailedClicked();
    

private:
    int AlarmSettingFrameButtonSelection;
    int AlarmOnOffSettingFrameButtonSelection;
    int Value1eAlarmOn;
    int Value2eAlarmOn;
    int Value3eAlarmOn;
    int Value1eAlarmOff;
    int Value2eAlarmOff;
    int Value3eAlarmOff;
    int ValueAlarmNow;

    void reloadtext();

};
#endif // GV_MAINTENANCEDELAYSETTINGDIALOG_H
